#include <iostream>
using namespace std;

class Test {
  private:
    static int n;

  public:
    Test() { n += 6; }
    ~Test() { n -= 8; }
    static int GetNum() { return n; }
};

int Test::n = 2;

int main() {
    cout << Test::GetNum() << endl;
    Test *p = new Test;
    cout << Test::GetNum() << endl;
    delete p;
    cout << Test::GetNum() << endl;
    cout << "end" << endl;

    return 0;
}
